<!--{eval $_TPL['titles'] = array('公司话题');}-->
<!--{template header}-->

<!--{if !empty($_SGLOBAL[inajax])}-->
	<div id="space_photo">
		<h3 class="feed_header">
			<a href="cp.php?ac=thread" class="r_option" target="_blank">发表话题</a>
			公司话题(共 $count 个)</h3>
		<!--{if $list}-->
		<ul class="line_list">
		<!--{loop $list $key $value}-->
			<li><a href="space.php?uid=$value[uid]&do=thread&id=$value[tid]" target="_blank">$value[subject]</a>
			<span class="gray">&nbsp;<a href="space.php?do=mtag&tagid=$value[tagid]" target="_blank">$value[tagname]</a></span></li>
		<!--{/loop}-->
		</ul>
		<div class="page">$multi</div>
		<!--{else}-->
		<div class="c_form">还没有话题列表。</div>
		<!--{/if}-->
	</div><br>
<!--{else}-->

<!-- container begin -->
<div class="container">
  <div class="h_15"></div>
  <div class="a_container p_r ">
	<!--{if $space[self]}-->
		<div class="list-tit">
		  <ul>
			<li id="m01" class="cur" value="0"><a href="space.php?do=thread&view=me"><span>我的动态</span></a></li>
		    <!-- <li id="m02" class="" value="1"><a href="space.php?uid=$space[uid]&do=thread"><span>公司话题</span></a></li> -->
			<li id="m03" class="" value="2"><a href="cp.php?ac=thread"><span>发起新话题</span></a></li>
		  </ul>
		</div>
	<!--{else}-->
		<!--{eval 
			$_TPL['spacetitle'] = "话题";
			$_TPL['spacemenus'][] = "<a href=\"space.php?uid=$space[uid]&do=thread&view=me\">TA的所有话题</a>";
		}-->
		<!--{template space_menu}-->
	<!--{/if}-->

	<!--{if $list}-->
    <div class="I-list">
      <table >
        <tbody class="blue">
          <tr style="background:#ecf2ff">
            <td width="10">&nbsp;</td>
            <td width="445"><strong>主题</strong></td>
            <td width="190"><strong>公司</strong></td>
            <td width="190"><strong><!--{if $_GET[view]!='me'}-->作者<!--{/if}-->(回应/阅读)</strong></td>
            <td width="126"><strong>最后更新</strong></td>
          </tr>
          	<!--{loop $list $key $value}-->
				<!--{eval $magicegg = ""}-->							
				<!--{eval if($value[magicegg]) for($i=0; $i<$value[magicegg]; $i++) $magicegg .= '<img src="image/magic/egg/'.mt_rand(1,6).'.gif" />';}-->
				<tr>
					<td class="liHeight">&nbsp;</td>
					<td class="liHeight liBg">
						$magicegg <a href="space.php?uid=$value[uid]&do=thread&id=$value[tid]" <!--{if $value[magiccolor]}--> class="magiccolor$value[magiccolor]"<!--{/if}-->>$value[subject]</a>
						<!--{if $value[hot]}-->
						<br><span class="gray">$value[hot] 人推荐</span>
						<!--{/if}-->
					</td>
					<td class="liHeight"><a href="space.php?do=mtag&tagid=$value[tagid]">$value[tagname]</a></td>
					<td class="liHeight"><a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}">{$_SN[$value[uid]]}</a><br><span class="G-color">$value[replynum]/$value[viewnum]</span></td>
					<td class="liHeight"><a href="space.php?uid=$value[lastauthorid]" title="{$_SN[$value[lastauthorid]]}">{$_SN[$value[lastauthorid]]}</a><br><!--{date('m-d H:i',$value[lastpost],1)}--></td>
				</tr>
			<!--{/loop}-->
        </tbody>
      </table>
	  <div class="page">$multi</div>
    </div>
	<!--{else}-->
	<div class="c_form">还没有话题列表。</div>
	<!--{/if}-->
  </div>
</div>
<div class="h_10"></div>

	<!--{if $rlist}-->
		<div style="padding-bottom:10px;">
			<h3 class="l_status">
				<div class="r_option"><a href="space.php?do=mtag&view=hot">查看更多</a></div>
				热门公司
			</h3>
			<ul class="thread_list">
			<!--{loop $rlist $value}-->
				<li>
				<table width="100%">
					<tr>
					<td width="80">
						<div class="threadimg60"><a href="space.php?do=mtag&tagid=$value[tagid]"><img src="$value[pic]" style="width:60px;"></a></div>
					</td>
					<td>
						<a href="space.php?do=mtag&tagid=$value[tagid]" style="font-weight:bold;">$value[tagname]</a>
						<div class="gray">$value[title]</div>
						已有 <span class="num">$value[membernum]</span> 人加入
						<div class="gray">
							话题: $value[threadnum], 回帖: $value[postnum]
						</div>
					</td>
					</tr></table>
				</li>
			<!--{/loop}-->
			</ul>
		</div>
	<!--{/if}-->

<!--{/if}-->

<!--{template footer}-->